package visitorxaj;

public class Main {
	
	public static void main(String[] args) {
		Expr m1, m2;
		m1 = new Sum(new Number(1), new Number(2));
		m2 = new Sum(new Number(5), new Number(0));
		Expr root = new Mult(m1, m2);
		ElementVisitor element = (ElementVisitor) root;
		element.accept(new PrintVisitor());
	}

}
